package com.hnqcgczy.service;

import java.sql.SQLException;

public interface IUserService {
    /***
     * 注册
     * @param uname
     * @param pwd
     * @return
     * @throws SQLException
     */
    boolean reg(String uname,String pwd) throws SQLException;

    /***
     * 检查昵称是否 可用
     * @param uname
     * @return
     * @throws SQLException
     */
    boolean getUserByTuId(String uname) throws SQLException;

    /***
     * 登陆
     * @param id
     * @param password
     * @return
     * @throws SQLException
     */
    boolean login(String id,String password) throws SQLException;
}
